package com.android.king.vo;



import java.io.Serializable;
import java.util.ArrayList;

/**
 *  xum add file
 */
public class MyFileFolder implements Serializable {

    public String name;  //当前文件夹的名字
    public String path;  //当前文件夹的路径
    public ArrayList<MyFileItem> files;  //当前文件夹下所有文件的集合

    /**
     * 只要文件夹的路径和名字相同，就认为是相同的文件夹
     */
    @Override
    public boolean equals(Object o) {
        try {
            MyFileFolder other = (MyFileFolder) o;
            return this.path.equalsIgnoreCase(other.path) && this.name.equalsIgnoreCase(other.name);
        } catch (ClassCastException e) {
            e.printStackTrace();
        }
        return super.equals(o);
       }

   }

